<template>
  <div class="custom-portrait">
    <!-- 整体样式 -->
    <div class="component-container">
      <!-- 上部分 -->
      <div class="drawcontainer">
        <div style="display: flex; flex-direction: column"></div>
        <div class="drawheader">
          <!-- 返回按钮 -->
          <div class="back">
            <i class="el-icon-arrow-left" @click="$router.go(-1)">返回</i>
          </div>
          <div class="headtext">
            <!-- 文字部分 -->
            <div style="width: 100%; padding-left: 20px">
              <div class="headtitle">设备信息采集异常</div>
              <!-- 内容部分 -->
              <div class="headcontent">
                <div class="headbox">
                  <p class="boxtitle">事件级别</p>
                  <span class="boxcontent">一般</span>
                </div>
                <div class="headbox">
                  <p class="boxtitle">标识符</p>
                  <span class="boxcontent">110004</span>
                </div>
                <div class="headbox">
                  <p class="boxtitle">事件分类</p>
                  <span class="boxcontent">设备设施故障</span>
                </div>
              </div>
            </div>
          </div>
        </div>

        <!-- 隐藏内容区域 -->

        <div class="content-box" style="flex: 1">
          <!-- tabs -->
          <el-tabs type="border-card"  style="height: 100%">
            <!-- 属性信息板块 -->
            <el-tab-pane label="属性信息">
              <div class="tab-content">
                <el-button size="mini" type="primary">创建模型</el-button>
                <el-button size="mini">配置规则</el-button>
              </div>
              <el-table :data="tdata"  style="width: 100%">
                <template slot="empty">
                  <el-empty description="暂无数据"></el-empty>
                </template>
                <el-table-column label="序号" type="index"></el-table-column>
                <el-table-column label="标签名称" prop="name"></el-table-column>
                <el-table-column
                  label="标签状态"
                  prop="index"
                ></el-table-column>
              </el-table>
            </el-tab-pane>

            <el-tab-pane label="运行监测信息">
              <div class="container">
                <form-1 style="width:40%"></form-1>
              </div>
            </el-tab-pane>
             <el-tab-pane label="邮件配置">
              <div class="container">
                <form-2 style="width:40%"></form-2>

              </div>
            </el-tab-pane>
              <el-tab-pane label="邮件通知">
              <div class="container">


              </div>
            </el-tab-pane>
                 <el-tab-pane label="短信通知">
              <div class="container">


              </div>
            </el-tab-pane>
          </el-tabs>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import form1 from '../../../components/security/moni/form1.vue';
import Form2 from '../../../components/security/moni/form2.vue';
export default {
  components: { form1, Form2 },
  data() {
    return {
      tdata: [],
      tableData: [],
      date: "day",
      value2: "",
    };
  },
};
</script>

<style lang="scss" scoped>
.custom-portrait {
  height: 100%;
  .component-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: #dde4ee;
    // 顶部
    .drawcontainer {
      //padding: 10px;
      width: 100%;
      height: 100%;
      //background: #dde4ee;
      display: flex;
      flex-direction: column;
      .drawheader {
        background-color: #fdfdfd;
        border-radius: 6px;
        // 返回按钮
        .back {
          line-height: 40px;
          height: 40px;
          border-bottom: 1px solid #e9e9e9;
          color: #989a9c;
          padding: 0 15px;
        }
        // 文字区域
        .headtext {
          width: 100%;
          display: flex;
          align-items: center;
          img {
            float: left;
            padding-right: 20px;
            height: 100px;
            margin: 20px;
          }
          .headtitle {
            white-space: nowrap;
            font-weight: 700;
            font-style: normal;
            font-size: 16px;
            color: #303032;
            padding-top: 20px;
            width: 100%;
          }
          .headcontent {
            display: inline-block;
            margin-top: 20px;
            width: 100%;
            .headbox {
              display: inline-block;
              width: 16%;
              float: left;
              padding-right: 20px;
              .boxtitle {
                margin-top: 0;
                width: 100%;
                height: 14px;
                margin-bottom: 20px;
                font-size: 14px;
                color: #505255;
              }
              .boxcontent {
                font-size: 14px;
                width: 100%;
                margin-bottom: 20px;
                font-size: 14px;
                color: #303032;
                overflow: hidden;
                display: inline-block;
                text-overflow: ellipsis;
                white-space: nowrap;
              }
            }
          }
        }
      }
      .content-box {
        height: 100%;
        width: 100%;
        overflow: hidden;
        background: #fff;
        margin-top: 10px;
        border-radius: 6px;
        box-sizing: border-box;
        .drawmain {
          overflow-y: auto;
          background-color: #fff;
          width: 100%;
          height: 100%;
          box-sizing: border-box;
        }
        .business-data-title {
          margin-bottom: 10px;
        }
      }
    }
    .tab-content {
    }
    .container {
      width: 100%;
      height: 100%;
      background: #fff;
      padding: 10px;
      display: flex;
      justify-content: center;
    }
    .opt-btn {
      text-align: center;
      -webkit-transform: translateY(-2px);
      transform: translateY(-2px);
      position: absolute;
      left: 48%;
      z-index: 1;
    }
  }
}
// 去掉中间的外边距
.el-button + .el-button {
  margin-left: 10px;
}

.dateFilter {
  display: flex;
  justify-content: flex-start;
  height: 32px;
  margin-left: 7px;
}
</style>
<style lang="scss">
// 卡片部分
.custom-portrait {
  .el-card {
    height: 100%;
  }
  .el-card__header {
    padding: 16px 12px 0 12px;
    position: relative;
    border: none;
    &::before {
      content: "";
      width: 4px;
      height: 14px;
      background: #2979ff;
      position: absolute;
      left: 0;
      top: 18px;
    }
    .el-card-title {
      width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 14px;
      color: #303032;
      font-weight: 700;
    }
    .el-card-label {
      font-size: 12px;
      color: #95989c;
      font-weight: 400;
      padding-top: 8px;
    }
    .el-select {
      width: 67%;
      margin-right: 4%;
      text-align: left;
    }
    .el-card__body {
      padding: 0;
      height: calc(100% - 53px);
    }
  }
  .el-tabs__content,
  .el-table {
    height: 100%;
  }
  .el-tab-pane {
    height: 100%;
  }
}
</style>
